home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| C source text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 0a | 50 61 74 68 3a 20 69 6e |.lang.c.|Path: in|
|00000020| 32 2e 75 75 2e 6e 65 74 | 21 75 74 63 73 72 69 21 |2.uu.net|!utcsri!|
|00000030| 75 74 67 70 75 21 75 74 | 69 6e 66 6f 21 6e 65 77 |utgpu!ut|info!new|
|00000040| 73 0a 46 72 6f 6d 3a 20 | 44 61 72 72 65 6c 6c 20 |s.From: |Darrell |
|00000050| 47 72 61 69 6e 67 65 72 | 20 3c 64 61 72 72 65 6c |Grainger| <darrel|
|00000060| 6c 2e 67 72 61 69 6e 67 | 65 72 40 75 74 6f 72 6f |l.graing|er@utoro|
|00000070| 6e 74 6f 2e 63 61 3e 0a | 53 75 62 6a 65 63 74 3a |nto.ca>.|Subject:|
|00000080| 20 52 65 3a 20 48 65 6c | 70 20 77 69 74 68 20 67 | Re: Hel|p with g|
|00000090| 65 74 74 6e 67 20 32 20 | 63 68 61 72 73 20 69 6e |ettng 2 |chars in|
|000000a0| 74 6f 20 61 6e 20 69 6e | 74 65 67 65 72 21 0a 58 |to an in|teger!.X|
|000000b0| 2d 4e 6e 74 70 2d 50 6f | 73 74 69 6e 67 2d 48 6f |-Nntp-Po|sting-Ho|
|000000c0| 73 74 3a 20 74 69 6e 6b | 65 72 62 65 6c 6c 2e 64 |st: tink|erbell.d|
|000000d0| 69 61 6c 69 6e 2e 75 74 | 6f 72 6f 6e 74 6f 2e 63 |ialin.ut|oronto.c|
|000000e0| 61 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |a.Conten|t-Type: |
|000000f0| 74 65 78 74 2f 70 6c 61 | 69 6e 3b 20 63 68 61 72 |text/pla|in; char|
|00000100| 73 65 74 3d 75 73 2d 61 | 73 63 69 69 0a 4d 65 73 |set=us-a|scii.Mes|
|00000110| 73 61 67 65 2d 49 44 3a | 20 3c 44 4c 30 7a 4a 33 |sage-ID:| <DL0zJ3|
|00000120| 2e 46 75 4a 40 75 74 63 | 63 2e 75 74 6f 72 6f 6e |.FuJ@utc|c.utoron|
|00000130| 74 6f 2e 63 61 3e 0a 54 | 6f 3a 20 77 61 77 64 61 |to.ca>.T|o: wawda|
|00000140| 40 73 63 66 2e 75 73 63 | 2e 65 64 75 0a 53 65 6e |@scf.usc|.edu.Sen|
|00000150| 64 65 72 3a 20 6e 65 77 | 73 40 75 74 63 63 2e 75 |der: new|s@utcc.u|
|00000160| 74 6f 72 6f 6e 74 6f 2e | 63 61 20 28 4e 65 77 73 |toronto.|ca (News|
|00000170| 29 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |).Conten|t-Transf|
|00000180| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|00000190| 74 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |t.Organi|zation: |
|000001a0| 55 54 43 43 20 43 61 6d | 70 75 73 20 41 63 63 65 |UTCC Cam|pus Acce|
|000001b0| 73 73 0a 52 65 66 65 72 | 65 6e 63 65 73 3a 20 3c |ss.Refer|ences: <|
|000001c0| 34 64 32 65 68 31 24 37 | 70 6d 40 75 73 63 2e 65 |4d2eh1$7|pm@usc.e|
|000001d0| 64 75 3e 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |du>.Mime|-Version|
|000001e0| 3a 20 31 2e 30 0a 44 61 | 74 65 3a 20 54 68 75 2c |: 1.0.Da|te: Thu,|
|000001f0| 20 31 31 20 4a 61 6e 20 | 31 39 39 36 20 31 36 3a | 11 Jan |1996 16:|
|00000200| 33 37 3a 35 31 20 47 4d | 54 0a 58 2d 4d 61 69 6c |37:51 GM|T.X-Mail|
|00000210| 65 72 3a 20 4d 6f 7a 69 | 6c 6c 61 20 31 2e 32 32 |er: Mozi|lla 1.22|
|00000220| 20 28 57 69 6e 64 6f 77 | 73 3b 20 49 3b 20 31 36 | (Window|s; I; 16|
|00000230| 62 69 74 29 0a 0a 77 61 | 77 64 61 40 73 63 66 2e |bit)..wa|wda@scf.|
|00000240| 75 73 63 2e 65 64 75 20 | 28 41 62 75 20 57 61 77 |usc.edu |(Abu Waw|
|00000250| 64 61 29 20 77 72 6f 74 | 65 3a 0a 3e 0a 3e 48 69 |da) wrot|e:.>.>Hi|
|00000260| 2e 20 49 20 63 61 6e 27 | 74 20 73 65 65 6d 20 74 |. I can'|t seem t|
|00000270| 6f 20 66 69 67 75 72 65 | 20 6f 75 74 20 68 6f 77 |o figure| out how|
|00000280| 20 74 6f 20 64 6f 20 74 | 68 69 73 2e 20 42 61 73 | to do t|his. Bas|
|00000290| 69 63 61 6c 6c 79 20 49 | 20 68 61 76 65 20 74 6f |ically I| have to|
|000002a0| 20 63 68 61 72 73 20 74 | 68 61 74 20 0a 3e 49 20 | chars t|hat .>I |
|000002b0| 77 61 6e 74 20 74 6f 20 | 70 75 74 20 69 6e 74 6f |want to |put into|
|000002c0| 20 61 20 32 2d 62 79 74 | 65 20 69 6e 74 65 67 65 | a 2-byt|e intege|
|000002d0| 72 2e 20 49 74 20 73 65 | 65 6d 73 20 65 61 73 79 |r. It se|ems easy|
|000002e0| 20 61 74 20 66 69 72 73 | 74 2c 20 62 75 74 20 49 | at firs|t, but I|
|000002f0| 20 63 61 6e 27 74 20 73 | 65 65 6d 20 0a 3e 74 6f | can't s|eem .>to|
|00000300| 20 66 69 67 75 72 65 20 | 6f 75 74 20 74 6f 20 64 | figure |out to d|
|00000310| 6f 20 69 74 20 77 69 74 | 68 20 74 68 65 20 62 69 |o it wit|h the bi|
|00000320| 74 2d 66 69 64 6c 69 6e | 67 20 6f 70 65 72 61 74 |t-fidlin|g operat|
|00000330| 6f 72 73 20 28 73 68 69 | 66 74 69 6e 67 20 6f 72 |ors (shi|fting or|
|00000340| 20 6d 61 73 6b 69 6e 67 | 29 2e 20 0a 3e 53 69 6d | masking|). .>Sim|
|00000350| 70 6c 65 20 70 75 74 2c | 20 49 27 64 20 6c 69 6b |ple put,| I'd lik|
|00000360| 65 20 74 6f 20 64 6f 3a | 0a 3e 0a 3e 09 63 68 61 |e to do:|.>.>.cha|
|00000370| 72 20 61 2c 62 3b 0a 3e | 09 69 6e 74 20 63 3b 0a |r a,b;.>|.int c;.|
|00000380| 3e 0a 3e 09 61 20 3d 20 | 27 41 27 3b 0a 3e 09 62 |>.>.a = |'A';.>.b|
|00000390| 20 3d 20 27 42 27 3b 0a | 3e 09 63 20 3d 20 3f 20 | = 'B';.|>.c = ? |
|000003a0| 2f 2a 20 74 68 65 20 66 | 69 72 73 74 20 62 79 74 |/* the f|irst byt|
|000003b0| 65 20 69 6e 20 63 20 73 | 68 6f 75 6c 64 20 63 6f |e in c s|hould co|
|000003c0| 6e 74 61 69 6e 20 74 68 | 65 20 76 61 6c 75 65 20 |ntain th|e value |
|000003d0| 6f 66 20 61 2c 20 61 6e | 64 20 74 68 65 20 0a 3e |of a, an|d the .>|
|000003e0| 73 65 63 6f 6e 64 20 62 | 79 74 65 20 73 68 6f 75 |second b|yte shou|
|000003f0| 6c 64 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 76 |ld conta|in the v|
|00000400| 61 6c 75 65 20 6f 66 20 | 62 20 2a 2f 0a 0a 49 20 |alue of |b */..I |
|00000410| 63 61 6e 6e 6f 74 20 67 | 75 61 72 61 6e 74 65 65 |cannot g|uarantee|
|00000420| 20 77 68 69 63 68 20 76 | 61 6c 75 65 20 67 6f 65 | which v|alue goe|
|00000430| 73 20 69 6e 20 77 68 69 | 63 68 20 62 79 74 65 20 |s in whi|ch byte |
|00000440| 73 69 6e 63 65 20 79 6f | 75 20 68 61 76 65 20 6e |since yo|u have n|
|00000450| 6f 74 20 73 70 65 63 69 | 66 69 65 64 20 74 68 65 |ot speci|fied the|
|00000460| 20 0a 65 6e 64 69 61 6e | 20 6f 66 20 79 6f 75 72 | .endian| of your|
|00000470| 20 6d 61 63 68 69 6e 65 | 2e 20 41 6c 73 6f 2c 20 | machine|. Also, |
|00000480| 64 6f 75 62 6c 65 20 63 | 68 65 63 6b 20 74 68 61 |double c|heck tha|
|00000490| 74 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |t the fo|llowing |
|000004a0| 70 72 69 6e 74 66 20 73 | 74 61 74 65 6d 65 6e 74 |printf s|tatement|
|000004b0| 20 0a 6f 75 74 70 75 74 | 73 20 22 32 2c 20 38 22 | .output|s "2, 8"|
|000004c0| 3a 0a 0a 23 69 6e 63 6c | 75 64 65 20 3c 6c 69 6d |:..#incl|ude <lim|
|000004d0| 69 74 73 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |its.h>.#|include |
|000004e0| 3c 73 74 64 69 6f 2e 68 | 3e 0a 0a 69 6e 74 20 6d |<stdio.h|>..int m|
|000004f0| 61 69 6e 28 76 6f 69 64 | 29 20 7b 09 70 72 69 6e |ain(void|) {.prin|
|00000500| 74 66 28 22 25 64 2c 20 | 25 64 5c 6e 22 2c 20 73 |tf("%d, |%d\n", s|
|00000510| 69 7a 65 6f 66 28 69 6e | 74 29 2c 20 43 48 41 52 |izeof(in|t), CHAR|
|00000520| 5f 42 49 54 29 3b 20 72 | 65 74 75 72 6e 20 30 3b |_BIT); r|eturn 0;|
|00000530| 20 7d 0a 0a 49 66 20 69 | 74 20 64 6f 65 73 20 6e | }..If i|t does n|
|00000540| 6f 74 20 74 68 65 6e 20 | 79 6f 75 20 61 72 65 20 |ot then |you are |
|00000550| 77 61 73 74 69 6e 67 20 | 79 6f 75 72 20 74 69 6d |wasting |your tim|
|00000560| 65 2e 20 49 66 20 69 74 | 20 64 6f 65 73 20 74 68 |e. If it| does th|
|00000570| 65 6e 20 79 6f 75 20 63 | 61 6e 20 64 6f 20 74 68 |en you c|an do th|
|00000580| 69 73 3a 0a 0a 09 63 68 | 61 72 20 61 2c 20 62 3b |is:...ch|ar a, b;|
|00000590| 0a 09 69 6e 74 20 63 3b | 0a 0a 09 63 20 3d 20 28 |..int c;|...c = (|
|000005a0| 28 69 6e 74 29 61 20 3c | 3c 20 43 48 41 52 5f 42 |(int)a <|< CHAR_B|
|000005b0| 49 54 29 20 2b 20 62 3b | 0a 0a 0a |IT) + b;|... |
+--------+-------------------------+-------------------------+--------+--------+